package org.langcom.logic.schedule;

public enum ItemType {
	NONE, YEAR, MONTH, WEEK, WEEK_OF_YEAR, DAY, DAY_OF_WEEK, HOUR, MINUTE, SECOND, MiILLISECOND;

	public static ItemType getNext(ItemType parent) {
		switch (parent) {
			case YEAR:
				return MONTH;
			case MONTH:
				return WEEK;
			case WEEK:
				return DAY;
			case WEEK_OF_YEAR:
				return DAY;
			case DAY:
				return HOUR;
			case DAY_OF_WEEK:
				return HOUR;
			case HOUR:
				return HOUR;
			case MINUTE:
				return SECOND;
			case SECOND:
				return MiILLISECOND;
		}
		return null;
	}
}
